package com.wuhongyu.repository;

import com.wuhongyu.base.BaseDao;
import com.wuhongyu.entity.Customer;
import com.wuhongyu.entity.Record;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public interface RecordDao extends BaseDao<Record> {

    /**
     * 通过客户查找交往记录
     * @param customer
     * @return
     */
    List<Record> findByCustomerEquals(Customer customer);

}
